import request from '@/utils/request'

// 查询看房列表
export function listLookhouse(query) {
  return request({
    url: '/lookhouse/lookhouse/list',
    method: 'get',
    params: query
  })
}

// 查询看房详细
export function getLookhouse(id) {
  return request({
    url: '/lookhouse/lookhouse/' + id,
    method: 'get'
  })
}

// 新增看房
export function addLookhouse(data) {
  return request({
    url: '/lookhouse/lookhouse',
    method: 'post',
    data: data
  })
}

// 修改看房
export function updateLookhouse(data) {
  return request({
    url: '/lookhouse/lookhouse',
    method: 'put',
    data: data
  })
}

// 删除看房
export function delLookhouse(id) {
  return request({
    url: '/lookhouse/lookhouse/' + id,
    method: 'delete'
  })
}
